﻿using System;

namespace Yz.Base
{
    /// <summary>
    /// viewmodel的基类
    /// </summary>
    [Serializable]
    public class ViewModel : BaseModel
    {
    }
    /// <summary>
    /// 带主键id（int）的viewmodel的基类
    /// </summary>
    [Serializable]
    public class ViewModelId : ViewModel
    {
        public int Id { get; set; }
    }
    /// <summary>
    ///  带主键id（guiid去掉-的字符串）的viewmodel的基类
    /// </summary>
    [Serializable]
    public class ViewModelKey : ViewModel
    {
        public string Id { get; set; }
    }
}
